import { createRouter, createWebHashHistory } from 'vue-router';

import Home from '../pages/Home.vue';
import Index from '../pages/index/Index.vue';

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes: [
        
        {
            path: '/',
            name: 'home',
            component: Home,
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/home',
            name: '首页',
            component: Home,
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/about',
            name: 'about',
            component: () => import('../pages/About.vue'),
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/main',
            name: 'main',
            component: () => import('../pages/Main.vue'),
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/resource',
            name: 'resource',
            component: () => import('../pages/Resource.vue'),
            meta: {
                requireAuth: false
            },
        },
        {
            path: '/infomation',
            name: 'infomation',
            component: () => import('../pages/Infomation.vue'),
            meta: {
                requireAuth: false
            },
        },
    ]
})

export default router;